package com.dcliment.display.gui
{
	import com.dcliment.utils.GraphicUtil;
	
	import flash.display.Sprite;

	/**
	 * 
	 * @author dcliment
	 * version: 1.0
	 * 
	 */	
	
	public class SimpleInvisibleButton extends Sprite
	{
		
		// Accessors
		// Specific to the chapter nav buttons (might want to seperate this out but not really nessessary yet 
		protected var _id:int;
		
		public function SimpleInvisibleButton($w:Number, $h:Number, $debug:Boolean = false)
		{
			super();

			var bkgd:Sprite = GraphicUtil.makeRectangle(0, 0, $w, $h, 0xFF0000, 1);
			addChild(bkgd);
			
			if($debug)
				bkgd.alpha = 0.5;
			else
				bkgd.alpha = 0;
			
			enable();
		}
		//
		// PUblic functions
		//
		public function enable():void
		{
			this.mouseEnabled = true;
			this.buttonMode = true;	
		}
		public function disable():void
		{	
			this.mouseEnabled = false;
			this.buttonMode = false;
		}
		
		//
		// ACCESSORS
		//
		public function get id():int
		{
			return _id;
		}

		public function set id(value:int):void
		{
			_id = value;
		}
	}
}